<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'game';
$return=array();
if($_RQ['op']=='merch'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('merchxieyi',$postdata);
		exi('设置成功');
	}
	$plugins =$this->plugins();
	$return['item']=$this->plugin_setting('merchxieyi');
	$htmls=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'string','title'=>'企业注册协议名称','name'=>'title'),	
			array('type'=>'richtext','title'=>'企业注册协议内容','name'=>'content'),	
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='user'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('userxieyi',$postdata);
		exi('设置成功');
	}
	$plugins =$this->plugins();
	$return['item']=$this->plugin_setting('userxieyi');
	$htmls=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'string','title'=>'灵工注册协议名称','name'=>'title'),	
			array('type'=>'richtext','title'=>'灵工注册协议内容','name'=>'content'),	
				
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}


